<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>订阅设置  - 会员中心 -{$sitename}</title>
{include file="center_include"/}
<script type="text/javascript">
		function setupLabel(){
            if($('.label-checkbox input').length) {
                $('.label-checkbox').each(function(){
                    $(this).removeClass('label-checkbox-on');
                });
                $('.label-checkbox input:checked').each(function(){
                    $(this).parent('label').addClass('label-checkbox-on');
                });
            };
            if($('.label-radio input').length) {
                $('.label-radio').each(function(){
                    $(this).removeClass('label-radio-on');
                });
                $('.label-radio input:checked').each(function(){
                    $(this).parent('label').addClass('label-radio-on');
                });
            };
        }  
	</script>
</head>
<body>
{include file="center_header"/}
<!-- // i-header end -->
<div id="content" class="layout">
  <div class="ui-box ui-qire fn-clear" id="i-box">
    <div id="i-bar">
 {include file="center_nav"/}     
 {include file="center_fk"/}
    </div>
    <!-- // i-bar end -->
    <div class="i-box-cnt" id="i-cnt">
      <div id="i-subscribe">
        <div class="ui-title i-tab-nav-box fn-clear">
            <ul class="i-tab-nav fn-clear">
              <li><a href="{:zanpian_user_url('user/center/info')}" hidefocus="">基本资料</a></li>
              <li class="line"></li>
              <li class="current"><a href="{:zanpian_user_url('user/center/email')}" hidefocus="">订阅设置</a></li>
              <li class="line"></li>
              <li><a href="{:zanpian_user_url('user/center/avatar')}" hidefocus="">头像修改</a></li>
              <li class="line"></li>              
              <li><a href="{:zanpian_user_url('user/center/pwd')}" hidefocus="">修改密码</a></li>
            </ul>
          </div>
        <div class="ui-cnt">
          <form id="remindset" method="post" onsubmit="return false;">
            <div class="ui-form">
              <p class="tbmov-notice"> 友情提示：订阅提示有2种提示方式，站内提示和邮件提示。您能可以根据自己的习惯选择，或者一起选择。 </p>
              <div class="ui-form-item fn-clear">
                <label class="ui-label w130">订阅提醒：</label>
                <div class="ui-form-block w300">
                 <label class="label-checkbox" for="if_email" hidefocus>
                    <input type="checkbox" value="1" name="info[isstation]" id="if_email" {if condition="$userinfo[isstation] eq 1"} checked="checked"{/if}/>
                   开通订阅提醒功能</label>
                </div>
                <p class="ui-message ui-message-clear">订阅有更新时，{$site_name}会同步提示您观看。</p>
              </div>
              <div class="ui-form-item  fn-clear">
                <label class="ui-label w130">订阅邮件提醒：</label>
                  <div class="ui-form-block w300">
                  <label class="label-checkbox" for="if_inter" hidefocus>
                    <input type="checkbox" value="1" name="info[isRemind]" id="if_inter" {if condition="$userinfo[isRemind] eq 1"} checked="checked"{/if}/>
                    开通订阅邮件提醒功能</label>
                </div>
              </div>
              <div class="ui-form-item fn-clear">
                <label class="ui-label w130"></label>
                <input type="text" class="ui-input w300" value="{$userinfo[iemail]}" name="info[iemail]"  />
                <p class="ui-message ui-message-clear">推荐使用QQ邮箱，订阅有更新时，发送至您的指定邮箱。</p>
              </div>
              <div class="ui-form-item fn-clear">
                <label class="ui-label w130"></label>
                <input type="button" id="remindsetbt" class="ui-button w150" value="提 交" />
              </div>
            </div>
          </form>
          <!-- // ui-form End -->
        </div>
      </div>
      <!-- // ui-box End -->
    </div>
    <!-- // maxBox End -->
  </div>
  <script type="text/javascript">
	$("#remindsetbt").click(function(){
		$("#remindset").qiresub({
			curobj:$("#remindsetbt"),
			txt:'数据提交中,请稍后...',
			onsucc:function(result){
				//$.showfloatdiv({offset:$("#register").offset(),txt:'成功注册'});
				$.hidediv(result);
				//alert(result.msg);
			}
		})
		.post({
		 url : "{:zanpian_user_url('user/center/email')}"
		});
	});
	</script>
  <script type="text/javascript">
	$(function(){		
		$('.label-checkbox').click(function(){
			setupLabel();
		});
		setupLabel();
	});
	</script>
</div>
<!-- // wrap End -->
</div>
{include file="footer"/}
</body>
</html>
